/*
    SUSAN® - Sole of Unix Save ANything

   Copyright (C) 2016-2019 Skyatlas co. ltd

   
*/
#ifndef BAREOS_STORED_SPOOL_H_
#define BAREOS_STORED_SPOOL_H_

class StatusPacket;

namespace storagedaemon {

bool BeginDataSpool(DeviceControlRecord* dcr);
bool DiscardDataSpool(DeviceControlRecord* dcr);
bool CommitDataSpool(DeviceControlRecord* dcr);
bool AreAttributesSpooled(JobControlRecord* jcr);
bool BeginAttributeSpool(JobControlRecord* jcr);
bool DiscardAttributeSpool(JobControlRecord* jcr);
bool CommitAttributeSpool(JobControlRecord* jcr);
bool WriteBlockToSpoolFile(DeviceControlRecord* dcr);
void ListSpoolStats(StatusPacket* sp);

} /* namespace storagedaemon */

#endif  // BAREOS_STORED_SPOOL_H_
